        <?php $array_parent_id =explode("|", $this->session->userdata('parentId'));?>
<section class="vbox">
	<section class="w-f scrollable">
		<div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="10px" data-railOpacity="0.2">
			<div class="clearfix wrapper dk nav-user hidden-xs">
				<div class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <span class="thumb avatar pull-left m-r"> <img src="<?php echo base_url()?>images/un-avatar.png" class="dker" alt="..."> <i class="on md b-light"></i> </span> <span class="hidden-nav-xs clear"> <span class="block m-t-xs"> <strong class="font-bold text-lt"><?php echo $this->session->userdata('fullname')?></strong> </span> <span class="text-muted text-xs block"><?php echo $this->session->userdata('department');?></span> </span> </a>
				</div>
			</div>
			<!-- nav --> 
			<nav class="nav-primary hidden-xs">
				<ul class="nav nav-main" data-ride="collapse"> 
					<li >
						<a href="#" class="auto"> <span class="pull-right text-muted"> <i class="i i-circle-sm-o text"></i> <i class="i i-circle-sm text-active"></i> </span> <i class="i i-docs icon"> </i> <span class="font-bold">Quản Lý Khách Hàng</span> </a> 
						<ul class="nav dk">
							<li > <a href="<?php echo base_url()?>companies/" class="auto"> <i class="i i-dot"></i> <span>Danh Sách Khách Hàng</span> </a> </li>
							<?php if(!$this->fclass->check_permission('special','is_accounting',$this->session->userdata('permissions2'),$this->session->userdata('permissions_base'))){?>
							<li > <a href="<?php echo base_url()?>customer/add/" class="auto"> <i class="i i-dot"></i> <span>Tạo Khách Hàng</span> </a> </li>
							<?php }?>
						</ul>
					</li>
					<?php if($this->fclass->check_permission('special','is_ceo',$this->session->userdata('permissions2'),$this->session->userdata('permissions_base'))||$this->fclass->check_permission('special','is_accounting',$this->session->userdata('permissions2'),$this->session->userdata('permissions_base'))){?>
					<li >
						<a href="#" class="auto"> <span class="pull-right text-muted"> <i class="i i-circle-sm-o text"></i> <i class="i i-circle-sm text-active"></i> </span> <i class="i i-docs icon"> </i> <span class="font-bold">Quản Lý Conflict</span> </a> 
						<ul class="nav dk">
							<li > <a href="<?php echo base_url()?>conflict/" class="auto"> <i class="i i-dot"></i> <span>Danh Sách Conflict</span> </a> </li>							
						</ul>
					</li>
					<?php }?>

					<?php if(count($array_parent_id)>1){?>
					<li >
						<a href="#" class="auto"> <span class="pull-right text-muted"> <i class="i i-circle-sm-o text"></i> <i class="i i-circle-sm text-active"></i> </span> <i class="i i-docs icon"> </i> <span class="font-bold">Quản Lý Lịch Sử</span> </a> 
						<ul class="nav dk">
							<li > <a href="<?php echo base_url()?>history/" class="auto"> <i class="i i-dot"></i> <span>Danh Sách Lịch Sử</span> </a> </li>							
						</ul>
					</li>
					<?php }?>


					<?php if(!$this->fclass->check_permission('special','is_accounting',$this->session->userdata('permissions2'),$this->session->userdata('permissions_base'))){?>
				
					<li >
						<a href="<?php echo base_url()?>timeline/" class="auto"> <span class="pull-right text-muted"> <i class="i i-circle-sm-o text"></i> <i class="i i-circle-sm text-active"></i> </span> <i class="i i-grid2 icon"> </i> <span class="font-bold">TimeLine</span> </a> 

					</li>

					<?php }?>


					
				</ul>                              
			</nav>
			<!-- / nav --> 
		</div>
	</section>
	<footer class="footer hidden-xs no-padder text-center-nav-xs"> <a href="<?php echo base_url()?>logout" class="btn btn-icon icon-muted btn-inactive pull-right m-l-xs m-r-xs hidden-nav-xs"> <i class="i i-logout"></i> </a> <a href="#nav" data-toggle="class:nav-xs" class="btn btn-icon icon-muted btn-inactive m-l-xs m-r-xs"> <i class="i i-circleleft text"></i> <i class="i i-circleright text-active"></i> </a> 
	</footer>
</section>